<div class="login">
{if $user->isLoaded}
	<div class="outerLoggedIn">
		<div class="id">{$user->id}</div>
		<div class="name">{$user->name}</div>
		<div class="logout"><form action="" method="post"><input type="hidden" name="a" value="logout" /><input type="submit" value="Logout" /></form></div>
	</div>
{else}
	<div class="outerLogin">
		<form action="" method="post">
		<input type="hidden" name="a" value="login" />
		<div class="name"><input type="text" name="name" /></div>
		<div class="password"><input type="password" name="password" /></div>
		<div class="login"><input type="submit" value="Login" /></div>
		</form>
	</div>
{/if}
</div>
